package com.gxwzxy.medic.entity.otherentity;

import java.util.List;

import com.gxwzxy.medic.entity.Role;

public class UserRole {
	
	private String userId;//用户编号
	private String userName;//用户账号
	private String name;//用户姓名
	private String roleId;//所属角色
//	private String roleId1;
//	private String roleId2;
//	private String roleId3;
//	private List<Role> list;//可将关联的角色存入表中
	
	public UserRole() {
		super();
		// TODO Auto-generated constructor stub
	}

	public UserRole(String userId, String userName, String name, String roleId) {
		super();
		this.userId = userId;
		this.userName = userName;
		this.name = name;
		this.roleId = roleId;
	}

	/* (non-Javadoc)
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		return "UserRole [userId=" + userId + ", userName=" + userName + ", name=" + name
				+ ", roleId=" + roleId + "]";
	}

	/**
	 * @return the userId
	 */
	public String getUserId() {
		return userId;
	}

	/**
	 * @param userId the userId to set
	 */
	public void setUserId(String userId) {
		this.userId = userId;
	}

	/**
	 * @return the userName
	 */
	public String getUserName() {
		return userName;
	}

	/**
	 * @param userName the userName to set
	 */
	public void setUserName(String userName) {
		this.userName = userName;
	}

	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}

	/**
	 * @param name the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}

	/**
	 * @return the roleId
	 */
	public String getRoleId() {
		return roleId;
	}

	/**
	 * @param roleId the roleId to set
	 */
	public void setRoleId(String roleId) {
		this.roleId = roleId;
	}
	
	
}
